import { Column, Entity } from 'typeorm';
import { CommonEntity } from '../../../../util/entity/common.entity';
import { TransformBigint } from '../../../../util/common-fn';

@Entity('dnf_recharge')
export class Recharge extends CommonEntity {
  @Column({ comment: '名称' })
  name: string;
  @Column({ comment: '购买货币类型' })
  buyPriceType: number;
  @Column({
    transformer: new TransformBigint(),
    type: 'bigint',
    comment: '购买货币数量',
  })
  buyNum: number;
  @Column({ comment: '获得货币类型' })
  rewardPriceType: number;
  @Column({
    transformer: new TransformBigint(),
    type: 'bigint',
    comment: '获得货币数量',
  })
  rewardNum: number;
  @Column({ nullable: true, comment: '获得货币的图片' })
  imageUrl: string;
}
